package com.feng.bean;

import java.io.Serializable;

/**
 * 用户地址类.
 * 此类必须实现Serializable接口,否则就报错
 */
public class UserAddress implements Serializable {
    private String name;
    private String city;

    public UserAddress(String name, String city) {
        this.name = name;
        this.city = city;
    }

    public UserAddress() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    @Override
    public String toString() {
        return "UserAddress{" +
                "name='" + name + '\'' +
                ", city='" + city + '\'' +
                '}';
    }
}
